<? require("../header.inc"); ?>
<? require_once('iam_opml_parser.php');?>
<? require_once('svnversion.inc');?>
<?
?>
<HTML>
<HEAD>
<SCRIPT Language="Javascript">
<!--
function goback()
{
window.history.back();
}


function showinfo(themsg)
{
alert (themsg);
}

function asksolved(notes,url)
{
document.write ('<H1>Did this solve your problem ? <BR><A HREF="yes.php">YES</A> / <A HREF="javascript:history.back()"> NO </A>');
if (notes == "")
{
//parent.TSMain.location.href = url;
parent.TSMain.location.href = "http://www.bwebcentral.com/" + url;
}
else
{
parent.TSMain.document.write ('<H1> Notes: </H1>' + notes + '<P><A HREF="' + url + '"> Read More...</A>');
}
}
-->

</SCRIPT>
</HEAD>
<BODY>
<H2>Please choose the most approperiate option:</H2>
<?
$OPMLFile=$_GET['TheFile'];
if ($OPMLFile == "") 
{$OPMLFile = "./maints.opml";
$Permalink = "http://www.bwebcentral.com/super-faq/";
}
else
{
$Permalink = "http://www.bwebcentral.com/super-faq/" . $OPMLFile;
}
$parser = new IAM_OPML_Parser();
$info = $parser->getFeeds($OPMLFile);
$emailaddr = $parser->ownerEmail();
$count = count($info);
echo "<UL>";
for ($j = 0; $j < $count; $j++) {
$I = $info[$j];
$url = $I['urls'];
$name = $I['names'];

$G = strpos ($url,".opml");
if ($G !== false)
{
echo "<P><LI><A HREF=\"troubleshooter.php?TheFile=$url\">$name</A></LI></P>";
}
else
{
$notes = $I['descriptions'];
//print_r ($info);
echo "<P><LI><A HREF=\"javascript:void(0);\" onClick=\"asksolved('$notes','$url')\">$name</A></LI></P>";
//echo "<P><LI><A HREF=\"javascript:void(0);\" onClick=\"showinfo('Hello');\">$name</A></LI></P>";
//ask did this answer your question ?
}

}
?>
</UL>
<HR>
<P>
<A HREF="javascript:void(0);" onClick="goback();">Go Back</A>
</P>
<?
/*** Not yet implemented ***
<P><A HREF="additem.php?RefID=<? echo $OpenID;?>"> Add to this list</A></P>
*****                    ***/
?>
<P><A TARGET=_TOP HREF="http://code.google.com/p/opml-faq/wiki/WikiProjectMain">Read about the OPML-FAQ project</A></P>
<P>&nbsp;</P>
<P>Permalink: <A TARGET="_TOP" HREF="<?echo $Permalink;?>"><? echo $Permalink;?> </A></P>
<P><? echo "OPML-FAQ (Beta) Rev 0." . REVISION;?></P>
</BODY>
</HTML>
